package com.dgq.main.config;

import com.dgq.main.service.AccountService;
import com.dgq.main.service.ShippingCart;
import com.dgq.main.service.impl.AccountServiceImpl;
import com.dgq.main.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.*;
import org.springframework.web.context.WebApplicationContext;

@Configuration
@ComponentScan(basePackages = "com.dgq.main")
@EnableAspectJAutoProxy
public class ApplicationConfig {


//	@Bean(name = "accountService")
//	@Scope(scopeName = ConfigurableBeanFactory.SCOPE_SINGLETON, proxyMode = ScopedProxyMode.TARGET_CLASS)
//	public AccountService accountService(){
//
//		shippingCart();
//		return new AccountServiceImpl();
//	}
//
//	@Bean
//	@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS, scopeName = WebApplicationContext.SCOPE_REQUEST)
//	public ShippingCart shippingCart(){
//		return new ShippingCart();
//	}
}
